const {merge} = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require('webpack');

module.exports = merge(common, {
    // target: 'web', // 设置目标环境为浏览器 强制启用热重载
    mode: 'development',
    devtool: 'source-map',
    devServer: {
       hot: true
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin()
    ]
});
